<?php 
	//$memId = $this->session->userdata('sess_memId');
	//$memAvatar = $this->session->userdata('sess_memAvatar'); 
	if($infoMember->avatar != '') {
		$avatar = '<img src="'. base_url() . $infoMember->avatar .'" alt="" width="80" height="60">';
	} else {
		$avatar = '<img src="'. base_url() .'public/image/NoImage.jpg" alt="">';
	}
?>
<div class="col-lg-10">
	<div class="row">
		<div class="row">
			<div class="col-lg-8">
				 <form class="form-horizontal" id="frm_edit_member" method="post" enctype="multipart/form-data">
	        			<fieldset>
    						<legend>Edit Profile</legend>
    						<?php if($this->session->flashdata('sess_Info')) : ?>
    							<p style="color:#ff0000"><?=$this->session->flashdata('sess_Info')?></p>
    						<?php endif ?>
							  <div class="form-group">
							    <label for="inputfullName" class="col-lg-2 control-label">Full name</label>
							    <div class="col-lg-10">
							      <input type="text" name="fullname" value="<?=$infoMember->fullname?>" class="form-control" id="inputfullName" placeholder="Enter full name">
							      <span class="help-block"><?php echo form_error('fullname')?></span>
							    </div>
							  </div> 
							  <div class="form-group">
							    <label for="inputEmail" class="col-lg-2 control-label">Email</label>
							    <div class="col-lg-10">
							      <input type="text" name="email" disabled="disabled" value="<?=$infoMember->email?>" class="form-control" id="inputEmail" placeholder="Enter email">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="inputPassword" class="col-lg-2 control-label">Password</label>
							    <div class="col-lg-10">
							      <input type="password" name="password" value="" class="form-control" id="inputPassword" placeholder="Enter new password">
							      <input type="hidden" name="old_pass" value="<?=$infoMember->password?>">
							      <span class="help-block"><?php echo form_error('password')?></span>
							    </div>
							  </div>
							  <div class="form-group">
							      <label for="exampleInputFile" class="col-lg-2 control-label">Avatar</label>
							      <input type="file" name="avatar" id="exampleInputFile" class="col-lg-4 control-label">
							      <input type="hidden" value="<?=$infoMember->avatar?>" name="old_photo">
							      <?=$avatar;?>
							    </div>
							   <p class="col-lg-offset-1">
							   		<button type="button" class="btn btn-primary" onclick="$('#frm_edit_member').submit()">Submit</button>
							   </p>
						</fieldset>
					</form>
			</div> 
		</div>
	</div> 